/**
 * Created with IntelliJ IDEA.
 * User: liulinhui
 * Date: 18-10-9
 * Time: 下午12:51
 * Description: index
 */
import keys from './keys'
import convert from './convert'
import hash from './hash'
import sign from './sign'

export default {
  bufferToHex: convert.bufferToHex,
  hexToBuffer: convert.hexToBuffer,
  useFirstEightBufferEntriesReversed: convert.useFirstEightBufferEntriesReversed,
  verifyMessageWithPublicKey: sign.verifyMessageWithPublicKey,
  signMessageWithSecret: sign.signMessageWithSecret,
  encryptMessageWithSecret: sign.encryptMessageWithSecret,
  decryptMessageWithSecret: sign.decryptMessageWithSecret,
  convertPublicKeyEd2Curve: sign.convertPublicKeyEd2Curve,
  convertPrivateKeyEd2Curve: sign.convertPrivateKeyEd2Curve,
  getPrivateAndPublicKeyFromSecret: keys.getPrivateAndPublicKeyFromSecret,
  getRawPrivateAndPublicKeyFromSecret: keys.getRawPrivateAndPublicKeyFromSecret,
  getSha256Hash: hash.getSha256Hash
}
